<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
{{assign var="title" value=$title|default:'配置中心文章'}}
{{assign var="app" value='config'}}
{{assign var="act" value='list'}}
{{assign var="table" value='config'}}
{{assign var="td" value='10'}}
<title>{{$title}}管理 - {{'admin|admin_site_name'|C|default:'后台管理'}}</title>
{{include file="include/base.html"}}
{{include file="{{$smarty.const.PLUG}}chosen/chosen.html"}}
{{include file="{{$smarty.const.PLUG}}drag/drag.html"}}
</head>
<body>

{{include file="include/sidebar.html"}}

<div class="body_right">
	<div id="content">
	
	<form name='form' action="index.php?app={{$app}}" method="post">
	<input type="hidden" name="app" value="{{$app}}"/>
	<input type="hidden" name="act" value=""/>
	<input type="hidden" name="table" value="{{$table}}"/>
	<table class="table table-bordered tablest drags saveorder" date="{{'table='|cat:$table|cat:'&field=ordering'|encode}}" >
		<tr class="thead">
			<td colspan="{{$td}}">
				<div class="floatr">
					<a class="btn iframe" height="300" width="800" href="index.php?app={{$app}}&act=modify&iframe=true"><i class="icon-plus"></i>添加{{$title}}</a>
					<!--a class="delete btn btn-danger" href="javascript:"><i class="icon-trash icon-white"></i>批量删除</a-->
				</div>
				◆ {{if !$smarty.get.item}}
				<a href="index.php?app={{$app}}&act=type">{{$title}}管理</a> －> 
				{{/if}}
				{{$title}}列表
			</td>
		</tr>
		{{if !$result.data}}
		<tr class="noline"><td colspan="{{$td}}" class="result_empty"></td></tr>
		{{else}}
		<tr class="ttitle">
			<th width="45" class="textac">ID</th>
			<th width="">{{$title}}标题</th>
			<th width="150">唯一名称</th>
			<th width="120">状态</th>
			<th width="100">操作</th>
		</tr>
		<tbody>
			{{foreach from=$result.data item=val key=key}}
			<tr class="drag">
				{{*ID*}}<td class="textac">{{$val.id}}<input name="ids[]" value="{{$val.id}}" type="hidden"/></td>
				{{*标题*}}<td><a href="index.php?app=config&alias={{$val.alias}}" class="a">{{$val.title}}</a></td>
				{{*唯一名称*}}<td>{{$val.alias}}</td>
				{{*状态*}}<td> <a class="ajaxSubmit refresh" link="index.php?app=functions&act=setValue&value={{!$val.publish}}&params={{'table='|cat:$table|cat:'&field=publish&id='|cat:$val.id|encode}}"><span class="select_{{$val.publish}}"></span></a> </td>
				<td>
					<a height="300" width="800" href="index.php?app={{$app}}&act=modify&alias={{$val.alias}}&iframe=true" class="btn iframe"><i class="icon-edit"></i>编辑</a>
				</td>
			</tr>
			{{/foreach}}
			<tr class="thead">
			  <td colspan="{{$td}}">
				{{include file="include/page.html"}}
			  </td>
			</tr>
		</tbody>
		{{/if}}
	</table>
	</form>
</div>
</div>

</body>
</html>